package gmusic.bo;

import java.io.Serializable;
import java.sql.ResultSet;
import java.sql.SQLException;

public class QueryBean implements Serializable {

	private String code;
	public static final String codeColumnName = "id";

	private String description;
	public static final String descriptionColumnName = "desc";

	private String query;
	public static final String queryColumnName = "query";

	public QueryBean(ResultSet rs) throws SQLException {
		setCode(rs.getString(codeColumnName));
		setDescription(rs.getString(descriptionColumnName));
		setQuery(rs.getString(queryColumnName));
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}
}
